body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px 0px 0px 0px;
  background-color: #f4f4f4;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  gap: 40px;
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 24px;
  text-align: center;
  color: #333;
}

.alias-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  border-bottom: 1px solid #ccc;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.alias-form label {
  font-weight: bold;
}

.alias-form input {
  flex: 1;
  padding: 8px;
  border-radius: 3px;
}

.add-button,
.expt-button,
.impt-button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
}

.add-button:hover,
.expt-button:hover,
.impt-button:hover {
  background-color: #126315;
}

.list-container {
  background-color: #fff;
  padding: 20px;
  padding-right: 0px;
  border-radius: 5px;
  border-bottom: 1px solid #ccc;
  padding-top: 20px;
}

.list-container .subtitle {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
  font-size: 1.2em;
}

/* 表格相关 */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
}

th {
  background-color: #f2f2f2;
}

table th:nth-child(1),
table td:nth-child(1) {
  text-align: center;
}

table th:nth-child(3),
table td:nth-child(3) {
  /* 第三列为URL列，限制宽度并允许文本省略显示 */
  max-width: 400px;
  /* 适当调整宽度 */
  word-wrap: break-word;
}

#saved-aliases-table td:last-child {
  border: none; /* 移除最后一列单元格的边框 */
  width: 1.5rem; /* 使用相对单位em，使其根据字体大小自动调整 */
}

.delete-btn {
  background-color: #f44336;
  color: white;
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.delete-btn:hover {
  background-color: #aa3434;
  align-items: start;
}

/* tuning export button layout */
#export-btn,
#import-btn {
  flex: none;
  width: fit-content;
  margin-left: 5px;
}